From 30016185be806b4ee2100e4b6973668606bddad8 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 31 Aug 2009 15:11:44 -0500 Subject: [PATCH] Make _gtk_file_system_model_remove_file() static It was only used internally by the model. Signed-off-by: Federico Mena Quintero --- gtk/gtkfilesystemmodel.c | 13 ++++++++----- gtk/gtkfilesystemmodel.h | 2 -- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 0b76c6339f..07f3685bf0 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -114,6 +114,9 @@ struct _GtkFileSystemModelClass static void add_file (GtkFileSystemModel *model, GFile *file, GFileInfo *info); +static void remove_file (GtkFileSystemModel *model, + GFile *file); + /* iter setup: * @user_data: the model * @user_data2: GUINT_TO_POINTER of array index of current entry @@ -1034,7 +1037,7 @@ gtk_file_system_model_monitor_change (GFileMonitor * monitor, model); break; case G_FILE_MONITOR_EVENT_DELETED: - _gtk_file_system_model_remove_file (model, file); + remove_file (model, file); break; case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: /* FIXME: use freeze/thaw with this somehow? */ @@ -1565,7 +1568,7 @@ add_file (GtkFileSystemModel *model, } /** - * _gtk_file_system_model_remove_file: + * remove_file: * @model: the model * @file: file to remove from the model. The file must have been * added to the model previously @@ -1573,9 +1576,9 @@ add_file (GtkFileSystemModel *model, * Removes the given file from the model. If the file is not part of * @model, this function does nothing. **/ -void -_gtk_file_system_model_remove_file (GtkFileSystemModel *model, - GFile *file) +static void +remove_file (GtkFileSystemModel *model, + GFile *file) { FileModelNode *node; guint id; diff --git a/gtk/gtkfilesystemmodel.h b/gtk/gtkfilesystemmodel.h index 895a395478..0c89d61ac6 100644 --- a/gtk/gtkfilesystemmodel.h +++ b/gtk/gtkfilesystemmodel.h @@ -69,8 +69,6 @@ const GValue * _gtk_file_system_model_get_value (GtkFileSystemModel void _gtk_file_system_model_add_and_query_file (GtkFileSystemModel *model, GFile *file, const char *attributes); -void _gtk_file_system_model_remove_file (GtkFileSystemModel *model, - GFile *file); void _gtk_file_system_model_update_file (GtkFileSystemModel *model, GFile *file, GFileInfo *info, -- 2.30.2